<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import= "java.util.*"%>
<%@ page import= "dto.SectorDTO"%>
<html>
<head>
	<link rel="stylesheet" href="css/estilo.css" type="text/css">
	<title>Lista de Sectores</title>
</head>
<body>

<table cellspacing="3" cellpadding="3" border="1" width="500">
	<tr>
		<td colspan="4"><b>Lista de Sectores</b></td>
	</tr>
	<tr>
		<td><b>Id</b></td>
		<td><b>Nombre</b></td>
		<td><b>Mozos</b></td>
		<td><b>Mesas</b></td>
	</tr>
<%
	SectorDTO aux;
	int id; 	
	List<SectorDTO> sectores = (List<SectorDTO>)request.getAttribute("sectores");
	for(Iterator<SectorDTO> i = sectores.iterator(); i.hasNext();)
	{
		aux = i.next();
		id = aux.getIdSector();
%>
	<tr>
		<td><%=id%></td>
		<td><%=aux.getNombre()%></td>
		<td><a href="Controlador?action=MostrarMozosSector&id=<%=id%>">Mostrar</a></td>			
		<td><a href="Controlador?action=MostrarMesasSector&id=<%=id%>">Mostrar</a></td>				
	</tr>
<% } %>
</table>
</body>
</html>